﻿Imports System.ServiceProcess

Public Class ewinsynservicelauncher
    Private log As ActivityLogger

    Protected Overrides Sub OnStart(ByVal args() As String)
        ' Add code here to start your service. This method should set things
        ' in motion so your service can do its work.
        log.log(MOD_APPSELF, "EwinSync Service start called by System", ActivityLoggerConf.LOGLEVEL_INFO)
        commons.startService()
    End Sub

    Protected Overrides Sub OnStop()
        ' Add code here to perform any tear-down necessary to stop your service.
        log.log(MOD_APPSELF, "EwinSync Service stop called by System", ActivityLoggerConf.LOGLEVEL_INFO)
        commons.stopService()
    End Sub
    Public Shared Function getServiceName() As String
        Return "EWinccSync"
    End Function

End Class
